﻿<%@ Page Language="C#" MasterPageFile="~/Template.master" AutoEventWireup="true" CodeFile="Employee.aspx.cs" Inherits="EmployeePage" %>
<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server">
    <asp:Label ID="Label12" runat="server" Text="مشخصات پرسنلی :"></asp:Label><br />
    <hr />
    &nbsp;<br />
    <table width="90%">
        <tr>
            <td>
            </td>
            <td align="center" colspan="2">
                <asp:Label ID="lblSaveMsg" runat="server" Text="اطلاعات با موفقیت ذخیره شد" Font-Bold="True" ForeColor="#00C000" Visible="False"></asp:Label></td>
            <td>
            </td>
        </tr>
        <tr>
            <td>
                <asp:Label ID="Label1" runat="server" Text="کد پرسنلی"></asp:Label></td>
            <td>
                <asp:Label ID="lblEmpId" runat="server" Font-Bold="True" Font-Size="Large" ForeColor="Green"
                    Text="0"></asp:Label></td>
            <td>
            </td>
            <td>
            </td>
        </tr>
        <tr>
            <td>
                <asp:Label ID="Label2" runat="server" Text="نام"></asp:Label></td>
            <td>
                <asp:TextBox ID="txtName" runat="server"></asp:TextBox>
                <asp:RequiredFieldValidator ID="RequiredFieldValidator1" runat="server" ControlToValidate="txtName"
                    ErrorMessage="*" ValidationGroup="SaveEmployee"></asp:RequiredFieldValidator></td>
            <td>
                <asp:Label ID="Label8" runat="server" Text="نام خانوادگی"></asp:Label></td>
            <td>
                <asp:TextBox ID="txtLastName" runat="server"></asp:TextBox>
                <asp:RequiredFieldValidator ID="RequiredFieldValidator2" runat="server" ControlToValidate="txtLastName"
                    ErrorMessage="*" ValidationGroup="SaveEmployee"></asp:RequiredFieldValidator></td>
        </tr>
        <tr>
            <td style="height: 26px">
                <asp:Label ID="Label11" runat="server" Text="جنسیت"></asp:Label></td>
            <td style="height: 26px">
                <asp:DropDownList ID="ddlGender" runat="server" Width="146px">
                    <asp:ListItem Value="1">مرد</asp:ListItem>
                    <asp:ListItem Value="0">زن</asp:ListItem>
                </asp:DropDownList></td>
            <td style="height: 26px">
                <asp:Label ID="Label3" runat="server" Text="تاریخ تولد"></asp:Label></td>
            <td style="height: 26px">
                <asp:TextBox ID="txtBirthday" runat="server"></asp:TextBox>
                <asp:RequiredFieldValidator ID="RequiredFieldValidator6" runat="server" ControlToValidate="txtBirthday"
                    ErrorMessage="*" ValidationGroup="SaveEmployee"></asp:RequiredFieldValidator></td>
        </tr>
        <tr>
            <td>
                <asp:Label ID="Label4" runat="server" Text="کد ملی"></asp:Label></td>
            <td>
                <asp:TextBox ID="txtSsn" runat="server" MaxLength="11"></asp:TextBox></td>
            <td>
                <asp:Label ID="Label5" runat="server" Text="شماره شناسنامه"></asp:Label></td>
            <td>
                <asp:TextBox ID="txtIdentityNo" runat="server" MaxLength="10"></asp:TextBox></td>
        </tr>
        <tr>
            <td>
                <asp:Label ID="Label6" runat="server" Text="محل تولد"></asp:Label></td>
            <td>
                <asp:TextBox ID="txtBornPlace" runat="server"></asp:TextBox></td>
            <td>
                <asp:Label ID="Label7" runat="server" Text="وضعیت تاهل"></asp:Label></td>
            <td>
                <asp:DropDownList ID="ddlMarreid" runat="server">
                    <asp:ListItem Value="1">متاهل</asp:ListItem>
                    <asp:ListItem Value="0">مجرد</asp:ListItem>
                </asp:DropDownList></td>
        </tr>
        <tr>
            <td>
                <asp:Label ID="Label17" runat="server" Text="تحصیلات"></asp:Label></td>
            <td>
                <asp:DropDownList ID="ddlEducation" runat="server" Width="144px">
                </asp:DropDownList></td>
            <td>
                <asp:Label ID="Label10" runat="server" Text="عنوان شغل"></asp:Label></td>
            <td>
                <asp:DropDownList ID="ddlJobTitle" runat="server" Width="153px">
                </asp:DropDownList>
                <asp:RequiredFieldValidator ID="RequiredFieldValidator5" runat="server" ControlToValidate="ddlJobTitle"
                    ErrorMessage="*" ValidationGroup="SaveEmployee"></asp:RequiredFieldValidator></td>
        </tr>
        <tr>
            <td style="height: 26px">
                <asp:Label ID="Label9" runat="server" Text="تاریخ شروع کار"></asp:Label></td>
            <td style="height: 26px">
                <asp:TextBox ID="txtJoinedDate" runat="server"></asp:TextBox>
                <asp:RequiredFieldValidator ID="RequiredFieldValidator3" runat="server" ControlToValidate="txtJoinedDate"
                    ErrorMessage="*" ValidationGroup="SaveEmployee"></asp:RequiredFieldValidator></td>
            <td style="height: 26px">
                <asp:Label ID="Label13" runat="server" Text="نوع حقوق پرداختی "></asp:Label></td>
            <td style="height: 26px">
                <asp:DropDownList ID="ddlPaymentF" runat="server" Width="153px">
                </asp:DropDownList></td>
        </tr>
        <tr>
            <td>
                <asp:CheckBox ID="chkInssurance" runat="server" Text="بیمه" /></td>
            <td>
                &nbsp;<asp:CheckBox ID="chkIsFormal" runat="server" Text="استخدام رسمی" /></td>
            <td>
                <asp:Label ID="Label18" runat="server" Text="حق جذب"></asp:Label></td>
            <td>
                <asp:TextBox ID="txtExteraPay" runat="server" MaxLength="10"></asp:TextBox></td>
        </tr>
        <tr>
            <td>
                <asp:Label ID="Label19" runat="server" Text="شماره بیمه"></asp:Label></td>
            <td>
                &nbsp;<asp:TextBox ID="txtInsuranceNo" runat="server" Width="126px"></asp:TextBox></td>
            <td>
                <asp:Label ID="Label14" runat="server" Text="تلفن"></asp:Label></td>
            <td>
                <asp:TextBox ID="txtPhone" runat="server" Font-Bold="True" ForeColor="Black" MaxLength="20"></asp:TextBox>
                <asp:RequiredFieldValidator ID="RequiredFieldValidator4" runat="server" ControlToValidate="txtPhone"
                    ErrorMessage="*" ValidationGroup="SaveEmployee"></asp:RequiredFieldValidator></td>
        </tr>
        <tr>
            <td>
                <asp:Label ID="Label15" runat="server" Text="آدرس"></asp:Label></td>
            <td>
                <asp:TextBox ID="txtAddress" runat="server" TextMode="MultiLine" Width="151px"></asp:TextBox></td>
            <td>
                <asp:Label ID="Label16" runat="server" Text="توضیحات"></asp:Label></td>
            <td>
                <asp:TextBox ID="txtDesc" runat="server" TextMode="MultiLine" Width="151px"></asp:TextBox></td>
        </tr>
        <tr>
            <td>
            <asp:Label ID="Label20" runat="server" Text="تاریخ ترک کار"></asp:Label>
                </td>
            <td>
            <asp:TextBox ID="txtLeftDate" runat="server" Enabled="False"></asp:TextBox>
                </td>
            <td>
                <asp:CheckBox ID="chkIsActive" runat="server" Text="فعال" />
            </td>
            <td>
                <asp:Button ID="btnSave" runat="server" Text="ذخیره" OnClick="btnSave_Click" ValidationGroup="SaveEmployee" />
                <asp:Button ID="btnNew" runat="server" Text="جدید" OnClick="btnNew_Click" /></td>
        </tr>
    </table>
</asp:Content>